package cn.gxa.j229.bug.finance.service.loanuser.impl;

import cn.gxa.j229.bug.finance.mapper.PlatformFundsMapper;
import cn.gxa.j229.bug.finance.pojo.PlatformFunds;
import cn.gxa.j229.bug.finance.service.loanuser.PlatformFundsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author: fenglin
 * @Date:2020/9/25 19:15
 * @Version 1.0
 */
@Service("PlatformFundsService")
public class PlatformFundsServiceImpl implements PlatformFundsService {

    @Resource
    PlatformFundsMapper platformFundsMapper=null;


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(PlatformFunds record) {
        return 0;
    }

    @Override
    public int insertSelective(PlatformFunds record) {
        return 0;
    }

    @Override
    public PlatformFunds selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public List<Map<String, String>> selectMoneyrecord(PlatformFunds platformFunds) {
        platformFunds.setPage((platformFunds.getPage()-1)*platformFunds.getLimit());
        return platformFundsMapper.selectMoneyrecord(platformFunds);
    }

    @Override
    public List<Map<String, String>> selectRechargerecord(PlatformFunds platformFunds) {
        platformFunds.setPage((platformFunds.getPage()-1)*platformFunds.getLimit());
        return platformFundsMapper.selectRechargerecord(platformFunds);
    }

    @Override
    public List<Map<String, String>> selectAll(int page, int limit) {

        return platformFundsMapper.selectAll(page,limit);
    }

    @Override
    public List<Map<String, String>> selectSerialAndTypeAndIoaccount(PlatformFunds platformFunds) {
        return platformFundsMapper.selectSerialAndTypeAndIoaccount(platformFunds);
    }

    @Override
    public int selectMoneyrecordCount(PlatformFunds platformFunds) {
        return platformFundsMapper.selectMoneyrecordCount(platformFunds);
    }

    @Override
    public int selectRechargerecordCount(PlatformFunds platformFunds) {
        return platformFundsMapper.selectRechargerecordCount(platformFunds);
    }

    @Override
    public int selectAllCount(int page, int limit) {
        return platformFundsMapper.selectAllCount(page,limit);
    }

    @Override
    public int selectSerialAndTypeAndIoaccountCount(PlatformFunds platformFunds) {
        return platformFundsMapper.selectSerialAndTypeAndIoaccountCount(platformFunds);
    }

    @Override
    public int updateByPrimaryKeySelective(PlatformFunds record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(PlatformFunds record) {
        return 0;
    }
}
